package com.uep.service.impl;

import com.uep.dao.QuestionAnswerMapper;
import com.uep.entity.QuestionAnswer;
import com.uep.entity.QuestionAnswerKey;
import com.uep.service.QuestionAnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by XQ on 2017/2/23.
 */
@Service("QuestionAnswer")
public class QuestionAnswerServiceImpl implements QuestionAnswerService {
    @Autowired
    QuestionAnswerMapper questionAnswerMapper;

    @Override
    public List<QuestionAnswerKey> findReview(String answerContent) {
        return questionAnswerMapper.selectReview(answerContent);
    }

    @Override
    public void insertOneReview(QuestionAnswer questionAnswer) {
        questionAnswerMapper.insert(questionAnswer);
    }
}
